<template>
<div class="layerRtb layerRtb-threecolumn">
    <three-title :title="{name:'业务类'}"></three-title>
    <div class="layerRtb-scroll thinScroll" v-scrollHeight = "0">
        <div class="analyItem">
            <p class="analyItemTit tx-center">阶段</p>
            <div class="analyItemCon">
                <p class="col-md-12 cRed">阶段分为: 量房、接单、预算、合同、未签、审计、准备、在施、竣工、完工、历史、-。如果不适用请不要使用</p>
                <p class="col-md-12 cBlue">需返回数值（INT）类型的 1、2、6、8、10、11、12、13、14、15、16</p>
                <div class="col-md-4" v-for="(item,index) in stageAry" :key="index">
                    <span class="cLightGray pr8">阶段{{ index + 1 }}</span>
                    <span>{{ item.stage | stage }}</span>
                </div>
            </div>
        </div>
        <div class="analyItem">
            <p class="analyItemTit tx-center">单号</p>
            <div class="analyItemCon">
                <p class="col-md-12 cRed">截取单号,单号需返回<span class="cBlue">字符串(string)类型</span>,需要有 - 分隔, 如: 2019-01-02-03</p>
                <p class="col-md-4">
                    <span class="cLightGray pr8">截取0-1</span>
                    <span>{{ oddNumber | sliceRwdid(0,1) }}</span>
                </p>
                <p class="col-md-4">
                    <span class="cLightGray pr8">截取0-2</span>
                    <span>{{ oddNumber | sliceRwdid(0,2) }}</span>
                </p>
                <p class="col-md-4">
                    <span class="cLightGray pr8">截取0-3</span>
                    <span>{{ oddNumber | sliceRwdid(0,3) }}</span>
                </p>
            </div>
        </div>
        <div class="analyItem">
            <p class="analyItemTit tx-center">类型</p>
            <div class="analyItemCon">
                <p class="col-md-12 cRed">类型分为: 办公、餐饮、酒店、其他、教育、会所、-。如果不适用请不要使用</p>
                <p class="col-md-12 cBlue">需返回数值（INT）类型的 1、2、3、4、5、6、7</p>
                <p class="col-md-4" v-for="(item, index) in typeAry" :key="index">
                    <span class="cLightGray pr8">类型{{ index + 1 }}</span>
                    <span>{{ item.type | panyType }}</span>
                </p>
            </div>
        </div>
        <div class="analyItem">
            <p class="analyItemTit tx-center">图片</p>
            <div class="analyItemCon">
                <p class="col-md-12 cRed">根据图片路径获取缩略图,适用图片地址在OSS上</p>
            </div>
        </div>
        <codemd url="Lesson3/docs/others.md"></codemd>
    </div>
</div>
</template>
<script>
import codemd from '../code-md'
export default {
    components: {
        codemd
    },
    data () {
        return {
            stageAry: [
                {stage: 1},
                {stage: 2},
                {stage: 3}
            ], // 阶段数据
            oddNumber: '2019-01-02-03', // 单号数据
            typeAry: [
                {type: 1},
                {type: 2},
                {type: 3}
            ] // 类型数据
        }
    },
    mounted () {

    },
    methods: {

    }
}
</script>
